//
//  UserAgreementVC.m
//  Yihubang
//
//  Created by xmy on 16/9/27.
//  Copyright © 2016年 jinghao. All rights reserved.
//

#import "UserAgreementVC.h"

@interface UserAgreementVC ()<UIGestureRecognizerDelegate>

@end

@implementation UserAgreementVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title =@"一呼帮用户协议";
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)gotoBack {
    [self.navigationController popViewControllerAnimated:YES];
    /* nav隐藏 */
    [self.navigationController.navigationBar setHidden:YES];
    /* 打开nav右侧边缘手势 */
    self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    [self.navigationController.navigationBar setHidden:NO];
    self.navigationController.interactivePopGestureRecognizer.delegate = self;
    /* 关闭nav右侧边缘手势 */
    self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
